<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Children</title>
	<script src="../js/react.js"></script>
    <script src="../js/react-dom.js"></script>
    <script src="../js/browser.min.js"></script>
</head>
<body>
	<div id="example"></div>
	<script type="text/babel">
		var NodeList = React.createClass({
			render: function() {
				return (<ol>
					{
						React.Children.map(this.props.children, function(item){
							return (<li>{item}</li>);
						})
					}
				</ol>);
			}
		});

		ReactDOM.render(
			<NodeList>
				<span>Bisu</span>
				<p>Fish</p>
				<h1>Best</h1>
				<h2>Fantisy</h2>
			</NodeList>,
			document.querySelector("#example")
			);
	</script>
</body>
</html>